package com.meteor.user.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meteor.framework.common.base.AutoEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 角色
 *
 * @author lynn
 * @date 2024/1/03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("sys_role")
public class SysRole extends AutoEntity<SysRole> {

    @Schema(description = "角色名称")
    private String name;

    @Schema(description = "角色编码")
    private String roleCode;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "数据范围")
    private Integer dataScope;

    @Schema(description = "机构ID")
//    @TableField(fill = FieldFill.INSERT)
    private String orgId;

}
